using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SignExchange : MonoBehaviour
{
    public bool[] Sign = new bool[2]; //0:a 1:b
    public GameObject[] SignPool = new GameObject[2];
    public int Num;

    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    public void ChooseStyle(float Posx, float Posy) {
        //生成Num
        if (Sign[0] == true && Sign[1] == true) {
            Sign[0] = false;
            Sign[1] = false;
            Num = Random.Range(0, 2);
        }
        else if (Sign[0] == false && Sign[1] == false) {
            Num = Random.Range(0, 2);
        }
        else {
            if (Sign[0] == false)
                Num = 0;
            else
                Num = 1;
        }
        Sign[Num] = true;

        //操作对象池进行生成
        //TOOD
    }
}
